//
//  YWMaterialCirculation.h
//  maintain
//
//  Created by 烟雨云渊 on 16/9/22.
//  Copyright © 2016年 ewin. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef NS_ENUM(NSUInteger, YWMaterialCirculationStatus) {
    YWMaterialCirculationStatusApply = 1,//发起物料申请
    YWMaterialCirculationStatusStockOut = 2,//领用物料(物料出库)
//    YWMaterialCirculationStatusReturned = 3,//归还物料
//    YWMaterialCirculationStatusReject = 4,//驳回申请
    YWMaterialCirculationStatusCerturnStockOut = 3,//确认出库
    YWMaterialCirculationStatusReturned = 4,//物料归还
    YWMaterialCirculationStatusCerturnReturned = 5,//确认归还
    YWMaterialCirculationStatusCancelApply = 6,//撤回物料申请
    YWMaterialCirculationStatusRejectApply = 7,//驳回物料申请
    YWMaterialCirculationStatusRejectCerturnStockOut = 8,//7拒绝确认出库
    YWMaterialCirculationStatusRejectCerturnReturned = 9,//拒绝确认入库
};

@class YWHandler;
@interface YWMaterialCirculation : NSObject
/* 人 */
@property (nonatomic, strong) YWHandler* person;
/* 状态 */
@property (nonatomic, assign) NSInteger status;
/* 时间 */
@property (nonatomic, assign) NSTimeInterval time;


/* 流转信息Id */
@property (nonatomic, assign) NSInteger infoId;
/* 物料关联ID */
@property (nonatomic, assign) NSInteger materialRelationId;
/* 流转信息发起人 */
@property (nonatomic, strong) YWHandler * author;
/* 流转信息接收人 */
@property (nonatomic, strong) YWHandler * recipient;
/* 流转发生时间 */
@property (nonatomic, assign) NSTimeInterval createTime;
/* 流转信息 */
@property (nonatomic, copy) NSString * note;
/* 流转类型 */
@property (nonatomic, assign) YWMaterialCirculationStatus type;
@end
